package com.bravo.mvpkotlin.ui.detail

import com.bravo.mvpkotlin.data.DataManager
import com.bravo.mvpkotlin.ui.ActivityScope
import dagger.Module
import dagger.Provides

/**
 * Created by Administrator on 2017/6/24.
 */
@Module
class DetailActivityModuel(val detailViws : DetailActivity){

    @ActivityScope
    @Provides
    fun providesPersenter(dataManager: DataManager):DetailPersenter{
        return DetailPersenter(detailViws,dataManager)
    }

    @ActivityScope
    @Provides
    fun providesAdapter():DetailAdapter{
        return DetailAdapter(detailViws)
    }
}